package com.zzc.qqchat.repository;

import com.zzc.qqchat.domain.UserInfor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.ArrayList;

public interface LoginRespository extends JpaRepository<UserInfor,Integer> {

    @Query(value = "select * from user where user_Id=?1 ",nativeQuery = true)
    ArrayList<UserInfor> findByUserId(int id);

}
